
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module golem.helpers.generics</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="golem.html"><font color="#ffffff">golem</font></a>.<a href="golem.helpers.html"><font color="#ffffff">helpers</font></a>.generics</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/opt/local/lib/python2.4/site-packages/golem/helpers/generics.py">/opt/local/lib/python2.4/site-packages/golem/helpers/generics.py</a></font></td></tr></table>
    <p><tt>#&nbsp;Part&nbsp;of&nbsp;pyGolem.&nbsp;See&nbsp;LICENSE&nbsp;in&nbsp;the&nbsp;root&nbsp;of&nbsp;your&nbsp;distribution&nbsp;for&nbsp;the&nbsp;license.<br>
#&nbsp;Andrew&nbsp;Walkingshaw&nbsp;&lt;andrew@lexical.org.uk&gt;</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="copy.html">copy</a><br>
<a href="lxml.etree.html">lxml.etree</a><br>
<a href="golem.html">golem</a><br>
</td><td width="25%" valign=top><a href="md5.html">md5</a><br>
<a href="random.html">random</a><br>
<a href="simplejson.html">simplejson</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
<a href="types.html">types</a><br>
<a href="urllib.html">urllib</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="golem.helpers.generics.html#Unit">Unit</a>
</font></dt><dt><font face="helvetica, arial"><a href="golem.helpers.generics.html#dict_mixin">dict_mixin</a>
</font></dt><dt><font face="helvetica, arial"><a href="golem.helpers.generics.html#ns_dict_mixin">ns_dict_mixin</a>
</font></dt><dt><font face="helvetica, arial"><a href="golem.helpers.generics.html#unit_mixin">unit_mixin</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="__builtin__.html#type">__builtin__.type</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="golem.helpers.generics.html#unit_metaclass">unit_metaclass</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="exceptions.html#AttributeError">exceptions.AttributeError</a>(<a href="exceptions.html#StandardError">exceptions.StandardError</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="golem.helpers.generics.html#UndefinedUnitError">UndefinedUnitError</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="UndefinedUnitError">class <strong>UndefinedUnitError</strong></a>(<a href="exceptions.html#AttributeError">exceptions.AttributeError</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="golem.helpers.generics.html#UndefinedUnitError">UndefinedUnitError</a></dd>
<dd><a href="exceptions.html#AttributeError">exceptions.AttributeError</a></dd>
<dd><a href="exceptions.html#StandardError">exceptions.StandardError</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="UndefinedUnitError-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

<dl><dt><a name="UndefinedUnitError-__init__"><strong>__init__</strong></a>(...)</dt></dl>

<dl><dt><a name="UndefinedUnitError-__str__"><strong>__str__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Unit">class <strong>Unit</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Unit-__init__"><strong>__init__</strong></a>(self, symbol, uri<font color="#909090">=None</font>, multiplierToSI<font color="#909090">=None</font>, offsetToSI<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="Unit-getSIConverter"><strong>getSIConverter</strong></a>(self)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x81c46d0&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'Unit' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="dict_mixin">class <strong>dict_mixin</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Properties defined here:<br>
<dl><dt><strong>entry</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = __getentry(cls)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = __setentry(cls, e)</dt></dl>
</dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x81c4470&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'dict_mixin' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ns_dict_mixin">class <strong>ns_dict_mixin</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x81c4550&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'ns_dict_mixin' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>namespaced_dictionary</strong> = &lt;class 'golem.helpers.generics.namespaced_dictionary'&gt;</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="unit_metaclass">class <strong>unit_metaclass</strong></a>(<a href="__builtin__.html#type">__builtin__.type</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="golem.helpers.generics.html#unit_metaclass">unit_metaclass</a></dd>
<dd><a href="__builtin__.html#type">__builtin__.type</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="unit_metaclass-__new__"><strong>__new__</strong></a>(cls, name, bases, dct)</dt></dl>

<hr>
Methods inherited from <a href="__builtin__.html#type">__builtin__.type</a>:<br>
<dl><dt><a name="unit_metaclass-__call__"><strong>__call__</strong></a>(...)</dt><dd><tt>x.<a href="#unit_metaclass-__call__">__call__</a>(...)&nbsp;&lt;==&gt;&nbsp;x(...)</tt></dd></dl>

<dl><dt><a name="unit_metaclass-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#unit_metaclass-__cmp__">__cmp__</a>(y)&nbsp;&lt;==&gt;&nbsp;cmp(x,y)</tt></dd></dl>

<dl><dt><a name="unit_metaclass-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#unit_metaclass-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="unit_metaclass-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#unit_metaclass-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="unit_metaclass-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#unit_metaclass-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

<dl><dt><a name="unit_metaclass-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#unit_metaclass-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>

<dl><dt><a name="unit_metaclass-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#unit_metaclass-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>

<dl><dt><a name="unit_metaclass-__subclasses__"><strong>__subclasses__</strong></a>(...)</dt><dd><tt><a href="#unit_metaclass-__subclasses__">__subclasses__</a>()&nbsp;-&gt;&nbsp;list&nbsp;of&nbsp;immediate&nbsp;subclasses</tt></dd></dl>

<dl><dt><a name="unit_metaclass-mro"><strong>mro</strong></a>(...)</dt><dd><tt><a href="#unit_metaclass-mro">mro</a>()&nbsp;-&gt;&nbsp;list<br>
return&nbsp;a&nbsp;<a href="__builtin__.html#type">type</a>'s&nbsp;method&nbsp;resolution&nbsp;order</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="__builtin__.html#type">__builtin__.type</a>:<br>
<dl><dt><strong>__base__</strong> = &lt;type 'type'&gt;</dl>

<dl><dt><strong>__bases__</strong> = (&lt;type 'type'&gt;,)</dl>

<dl><dt><strong>__basicsize__</strong> = 420</dl>

<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x81c4570&gt;</dl>

<dl><dt><strong>__dictoffset__</strong> = 132</dl>

<dl><dt><strong>__flags__</strong> = 22523</dl>

<dl><dt><strong>__itemsize__</strong> = 20</dl>

<dl><dt><strong>__mro__</strong> = (&lt;class 'golem.helpers.generics.unit_metaclass'&gt;, &lt;type 'type'&gt;, &lt;type 'object'&gt;)</dl>

<dl><dt><strong>__weakrefoffset__</strong> = 184</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="unit_mixin">class <strong>unit_mixin</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><strong>__abs__</strong> <em>lambda</em> x, z<font color="#909090">='__abs__'</font></dt></dl>

<dl><dt><strong>__add__</strong> <em>lambda</em> x, y, z<font color="#909090">='__add__'</font></dt></dl>

<dl><dt><strong>__and__</strong> <em>lambda</em> x, y, z<font color="#909090">='__and__'</font></dt></dl>

<dl><dt><strong>__coerce__</strong> <em>lambda</em> x, y, z<font color="#909090">='__coerce__'</font></dt></dl>

<dl><dt><strong>__complex__</strong> <em>lambda</em> x, z<font color="#909090">='__complex__'</font></dt></dl>

<dl><dt><a name="unit_mixin-__delitem__"><strong>__delitem__</strong></a> = delitem(self, k)</dt></dl>

<dl><dt><a name="unit_mixin-__delslice__"><strong>__delslice__</strong></a> = delslice(self, i, j)</dt><dd><tt>#&nbsp;sequence&nbsp;types</tt></dd></dl>

<dl><dt><strong>__div__</strong> <em>lambda</em> x, y, z<font color="#909090">='__div__'</font></dt></dl>

<dl><dt><strong>__divmod__</strong> <em>lambda</em> x, y, z<font color="#909090">='__divmod__'</font></dt></dl>

<dl><dt><strong>__float__</strong> <em>lambda</em> x, z<font color="#909090">='__float__'</font></dt></dl>

<dl><dt><strong>__floordiv__</strong> <em>lambda</em> x, y, z<font color="#909090">='__floordiv__'</font></dt></dl>

<dl><dt><strong>__hex__</strong> <em>lambda</em> x, z<font color="#909090">='__hex__'</font></dt></dl>

<dl><dt><strong>__iadd__</strong> <em>lambda</em> x, y, z<font color="#909090">='__iadd__'</font></dt></dl>

<dl><dt><strong>__iand__</strong> <em>lambda</em> x, y, z<font color="#909090">='__iand__'</font></dt></dl>

<dl><dt><strong>__idiv__</strong> <em>lambda</em> x, y, z<font color="#909090">='__idiv__'</font></dt></dl>

<dl><dt><strong>__ilshift__</strong> <em>lambda</em> x, y, z<font color="#909090">='__ilshift__'</font></dt></dl>

<dl><dt><strong>__imod__</strong> <em>lambda</em> x, y, z<font color="#909090">='__imod__'</font></dt></dl>

<dl><dt><strong>__imul__</strong> <em>lambda</em> x, y, z<font color="#909090">='__imul__'</font></dt></dl>

<dl><dt><strong>__index__</strong> <em>lambda</em> x, z<font color="#909090">='__index__'</font></dt></dl>

<dl><dt><strong>__int__</strong> <em>lambda</em> x, z<font color="#909090">='__int__'</font></dt></dl>

<dl><dt><strong>__invert__</strong> <em>lambda</em> x, z<font color="#909090">='__invert__'</font></dt></dl>

<dl><dt><strong>__ior__</strong> <em>lambda</em> x, y, z<font color="#909090">='__ior__'</font></dt></dl>

<dl><dt><strong>__ipow__</strong> <em>lambda</em> x, y, m<font color="#909090">=None</font>, z<font color="#909090">='__ipow__'</font></dt></dl>

<dl><dt><strong>__irshift__</strong> <em>lambda</em> x, y, z<font color="#909090">='__irshift__'</font></dt></dl>

<dl><dt><strong>__isub__</strong> <em>lambda</em> x, y, z<font color="#909090">='__isub__'</font></dt></dl>

<dl><dt><strong>__itruediv__</strong> <em>lambda</em> x, y, z<font color="#909090">='__itruediv__'</font></dt></dl>

<dl><dt><strong>__ixor__</strong> <em>lambda</em> x, y, z<font color="#909090">='__ixor__'</font></dt></dl>

<dl><dt><strong>__long__</strong> <em>lambda</em> x, z<font color="#909090">='__long__'</font></dt></dl>

<dl><dt><strong>__lshift__</strong> <em>lambda</em> x, y, z<font color="#909090">='__lshift__'</font></dt></dl>

<dl><dt><strong>__mod__</strong> <em>lambda</em> x, y, z<font color="#909090">='__mod__'</font></dt></dl>

<dl><dt><strong>__mul__</strong> <em>lambda</em> x, y, z<font color="#909090">='__mul__'</font></dt></dl>

<dl><dt><strong>__neg__</strong> <em>lambda</em> x, z<font color="#909090">='__neg__'</font></dt></dl>

<dl><dt><strong>__oct__</strong> <em>lambda</em> x, z<font color="#909090">='__oct__'</font></dt></dl>

<dl><dt><strong>__or__</strong> <em>lambda</em> x, y, z<font color="#909090">='__or__'</font></dt></dl>

<dl><dt><strong>__pos__</strong> <em>lambda</em> x, z<font color="#909090">='__pos__'</font></dt></dl>

<dl><dt><strong>__pow__</strong> <em>lambda</em> x, y, m<font color="#909090">=None</font>, z<font color="#909090">='__pow__'</font></dt></dl>

<dl><dt><strong>__radd__</strong> <em>lambda</em> x, y, z<font color="#909090">='__radd__'</font></dt></dl>

<dl><dt><strong>__rand__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rand__'</font></dt></dl>

<dl><dt><strong>__rdiv__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rdiv__'</font></dt></dl>

<dl><dt><strong>__rdivmod__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rdivmod__'</font></dt></dl>

<dl><dt><strong>__rfloordiv__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rfloordiv__'</font></dt></dl>

<dl><dt><strong>__rlshift__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rlshift__'</font></dt></dl>

<dl><dt><strong>__rmod__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rmod__'</font></dt></dl>

<dl><dt><strong>__rmul__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rmul__'</font></dt></dl>

<dl><dt><strong>__ror__</strong> <em>lambda</em> x, y, z<font color="#909090">='__ror__'</font></dt></dl>

<dl><dt><strong>__rpow__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rpow__'</font></dt></dl>

<dl><dt><strong>__rrshift__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rrshift__'</font></dt></dl>

<dl><dt><strong>__rshift__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rshift__'</font></dt></dl>

<dl><dt><strong>__rsub__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rsub__'</font></dt></dl>

<dl><dt><strong>__rtruediv__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rtruediv__'</font></dt></dl>

<dl><dt><strong>__rxor__</strong> <em>lambda</em> x, y, z<font color="#909090">='__rxor__'</font></dt></dl>

<dl><dt><a name="unit_mixin-__setitem__"><strong>__setitem__</strong></a> = setitem(self, k, v)</dt><dd><tt>#&nbsp;container&nbsp;types</tt></dd></dl>

<dl><dt><a name="unit_mixin-__setslice__"><strong>__setslice__</strong></a> = setslice(self, i, j, seq)</dt></dl>

<dl><dt><strong>__sub__</strong> <em>lambda</em> x, y, z<font color="#909090">='__sub__'</font></dt></dl>

<dl><dt><strong>__truediv__</strong> <em>lambda</em> x, y, z<font color="#909090">='__truediv__'</font></dt></dl>

<dl><dt><strong>__xor__</strong> <em>lambda</em> x, y, z<font color="#909090">='__xor__'</font></dt></dl>

<dl><dt><strong>append</strong> <em>lambda</em> x, z<font color="#909090">='append'</font></dt></dl>

<dl><dt><strong>extend</strong> <em>lambda</em> x, z<font color="#909090">='extend'</font></dt></dl>

<dl><dt><a name="unit_mixin-insert"><strong>insert</strong></a>(self, i, x)</dt></dl>

<dl><dt><a name="unit_mixin-pop"><strong>pop</strong></a>(self, arg<font color="#909090">=-1</font>)</dt></dl>

<dl><dt><strong>remove</strong> <em>lambda</em> x, z<font color="#909090">='remove'</font></dt></dl>

<dl><dt><a name="unit_mixin-reverse"><strong>reverse</strong></a>(self)</dt></dl>

<dl><dt><a name="unit_mixin-sort"><strong>sort</strong></a>(self, *args)</dt></dl>

<hr>
Properties defined here:<br>
<dl><dt><strong>as_SI</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = __get_as_SI(cls)</dt></dl>
</dd>
</dl>
<dl><dt><strong>unit</strong></dt>
<dd><tt>'unit'&nbsp;property</tt></dd>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = __getunit(cls)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = __setunit(cls, symbol_or_class)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>delete</em>"><strong><em>delete</em></strong></a> = __delunit(cls)</dt></dl>
</dd>
</dl>
<dl><dt><strong>uri</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = __geturi(cls)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = __seturi(cls, uri)</dt></dl>
</dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x81c46d0&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__metaclass__</strong> = &lt;class 'golem.helpers.generics.unit_metaclass'&gt;</dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'unit_mixin' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-golemdata"><strong>golemdata</strong></a>(x, u<font color="#909090">=None</font>, e<font color="#909090">=None</font>, warnings<font color="#909090">=None</font>)</dt></dl>
 <dl><dt><a name="-hexstring"><strong>hexstring</strong></a>()</dt><dd><tt>Generate&nbsp;a&nbsp;random&nbsp;hex&nbsp;string&nbsp;based&nbsp;on&nbsp;nothing&nbsp;in&nbsp;particular.</tt></dd></dl>
 <dl><dt><a name="-json_single"><strong>json_single</strong></a>(y)</dt></dl>
 <dl><dt><a name="-print_rdf"><strong>print_rdf</strong></a>(x, datatype_uri<font color="#909090">=None</font>, about<font color="#909090">=None</font>)</dt></dl>
 <dl><dt><a name="-print_rdf_rich"><strong>print_rdf_rich</strong></a>(x, resource, property<font color="#909090">=None</font>)</dt><dd><tt>For&nbsp;a&nbsp;given&nbsp;Golem&nbsp;value&nbsp;x,&nbsp;with&nbsp;units&nbsp;x.unit&nbsp;and&nbsp;concept&nbsp;x.uri,<br>
from&nbsp;URI&nbsp;'resource',&nbsp;produce&nbsp;an&nbsp;RDF/XML&nbsp;fragment&nbsp;of&nbsp;the&nbsp;form:<br>
&nbsp;<br>
&lt;rdf:Description&nbsp;rdf:about="resource"&gt;<br>
&nbsp;&nbsp;&lt;dictionary:uri&nbsp;rdf:about="resource#fragment"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;golem:value&nbsp;datatype="<a href="http://example.org/json/&quot;&gt;JSON">http://example.org/json/&quot;&gt;JSON</a>&nbsp;literal<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/golem:value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;golem:units&gt;unit&lt;/golem:units&gt;<br>
&nbsp;&nbsp;&lt;/dictionary:uri&gt;<br>
&lt;/rdf:Description&gt;</tt></dd></dl>
</td></tr></table>
</body></html>